package com.thd.springboottest.springbootextends.custombeandefinitionregistrypostprocessor;

/**
 * com.thd.springboottest.springbootextends.custombeandefinitionregistrypostprocessor.ExampleBeanA
 *
 * @author: wanglei62
 * @DATE: 2022/4/22 14:30
 **/
public class ExampleBeanA {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ExampleBeanA(){
        System.out.println("======================= 扩展 执行 ExampleBeanA的构造方法 ...");
    }

    public void init(){
        System.out.println(" ======================= 扩展执行 ExampleBeanA.init() ...");
    }

    public void destory(){
        System.out.println("======================= 扩展 执行 ExampleBeanA.destory() ...");
    }

    @Override
    public String toString() {
        return "ExampleBeanA{" +
                "name='" + name + '\'' +
                '}';
    }
}
